﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace EMC.VISITOR.Core
{
    [SugarTable(null, "企业微信邀请记录")]
    [BusinessVS]
    public class SysUserWchat : EntityBase
    {
        [SugarColumn(ColumnDescription = "程序是否发送成功", IsNullable = true)]
        public bool? IsSend { get; set; } = false;

        [SugarColumn(ColumnDescription = "用户Id", IsNullable = true)]
        public long? UserId { get; set; }

        [SugarColumn(ColumnDescription = "企业微信/邮箱返回结果", IsNullable = true)]
        public bool? WchatSendResult { get; set; }
        [SugarColumn(ColumnDescription = "企业微信/邮箱发送失败结果", IsNullable = true)]
        public string? WchatResultMessage { get; set; }

        [Navigate(NavigateType.OneToOne, nameof(UserId))]
        public virtual SysUser User { get; set; }
    }
}
